.node-action {
  animation-fill-mode: forwards;

  &::before,
  &::after {
    transition: opacity 0.5s;
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 3px solid rgba(var(--primary-6));
    animation: action 3s infinite linear;
    border-radius: 10px;
  }

  &::after {
    animation: action 3s infinite -1.5s linear;
  }
}

@keyframes action {
  0%,
  100% {
    clip-path: inset(0 0 95% 0);
  }

  25% {
    clip-path: inset(0 95% 0 0);
  }

  50% {
    clip-path: inset(95% 0 0 0);
  }

  75% {
    clip-path: inset(0 0 0 95%);
  }
}
